#ifndef ITEMSTRING_H
#define ITEMSTRING_H

#include "../ConfigItem.h"

class ItemString : public ConfigItem {
    Q_OBJECT
public:

    QString get();
    void set(const QString &value);
protected:
    QWidget *createWidget(WidgetStyle s) override;
    void update(QWidget *widget, UpdateOption option) override;
    void writeToData(QDataStream &stream) const override;
    void readFromData(QDataStream &stream) override;
private:
    QString m_data;
};


#endif // ITEMSTRING_H
